package com.wali.modules.usr.service;

import com.wali.modules.usr.bo.UsrSenderBO;
import com.wali.modules.usr.dao.IUsrSenderDao;
import com.wali.modules.usr.vo.UsrSenderVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author walixu
 * @ClassName com.wali.modules.usr.service
 * @Description 发件人service类
 * @email wali.xu@kpmg.com
 * @date 22/01/2019 8:13 下午
 */
@Service
public class UsrSenderService {

    @Autowired
    private IUsrSenderDao iUsrSenderDao;

    /**
     * @param
     * @return
     * @throws
     * @Title listUsrSender
     * @Description 查询符合条件的发件人信息
     */
    public List<UsrSenderVO> listUsrSender(UsrSenderBO usrSender) {
        UsrSenderVO usrSenderVO = UsrSenderBO.convert(usrSender);
        List<UsrSenderVO> usrSenderList = iUsrSenderDao.listUsrSender(usrSenderVO);
        return usrSenderList;
    }

}
